<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <?=Load::jQuery("Core/1.5.1/script.min.js") ?>
        <?=Load::jQuery("UI/1.8.12/script.min.js") ?>
        <?=Load::jQuery("jqForm/2.87/script.js") ?>
        <?=Load::jQuery("jqHighlight/3/script.js") ?>
        <style>
            .highlight{
                background:#eaff4f;
            }
            
            .dirClass{
                border:solid greenYellow 1px;
                background:#B8FFB2;
                margin:10px 0px;
                width:2in;
            }
            
            #FARTdiv{
                line-height: 1.5;
                font-family: tahoma;
                font-size: 12px;
            }
        </style>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
        <script>
            $(function(){
                
                var FARTopt = { 
                    target:'#FARTdiv', 
                    url:'index.php?req=fart', 
                    success:function(a) {
                        $.post("find.log",{},function(response){
                            $("#FARTdiv").text(response);
                            
                            var search_val = $("[name=find-str]").val();
                            $("#FARTdiv").highlight(search_val);
                            $("#FARTdiv").highlight("C:\\find\\",{className:"dirClass"});
                        });
                    } 
                }; 
                
                $("#FARTform").ajaxForm(FARTopt);
            });
        </script>
    </head>
    <body>
        <form action="index.php" method="post" id="FARTform">
            <input type="text" name="find-str"/>
            <input type="text" name="replace-str"/>
            <input type="submit"/>
        </form>
        <pre id="FARTdiv"></pre>
    </body>
</html>
